import { SETNAME } from '../actionType'

export default (state = 'unknow', action) => {
  switch (action.type) {
    case SETNAME:
      state = action.payload
      return state

    default:
      return state
  }
}
